package com.example.mbl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class News implements Serializable{
    private String newsid;

    private String newstitle;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date newsdate;

    private String newstype;

    private String newstext;

    private String topflag;

    private String reprintflag;

    private String flag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdate;

    private String newspic;

    public News(String newsid, String newstitle, Date newsdate, String newstype, String newstext, String topflag, String reprintflag, String flag, Date createdate, String newspic) {
        this.newsid = newsid;
        this.newstitle = newstitle;
        this.newsdate = newsdate;
        this.newstype = newstype;
        this.newstext = newstext;
        this.topflag = topflag;
        this.reprintflag = reprintflag;
        this.flag = flag;
        this.createdate = createdate;
        this.newspic = newspic;
    }

    public String getNewspic() {
        return newspic;
    }

    public void setNewspic(String newspic) {
        this.newspic = newspic;
    }

    public News() {
        super();
    }

    public String getNewsid() {
        return newsid;
    }

    public void setNewsid(String newsid) {
        this.newsid = newsid == null ? null : newsid.trim();
    }

    public String getNewstitle() {
        return newstitle;
    }

    public void setNewstitle(String newstitle) {
        this.newstitle = newstitle == null ? null : newstitle.trim();
    }

    public Date getNewsdate() {
        return newsdate;
    }

    public void setNewsdate(Date newsdate) {
        this.newsdate = newsdate;
    }

    public String getNewstype() {
        return newstype;
    }

    public void setNewstype(String newstype) {
        this.newstype = newstype == null ? null : newstype.trim();
    }

    public String getNewstext() {
        return newstext;
    }

    public void setNewstext(String newstext) {
        this.newstext = newstext == null ? null : newstext.trim();
    }

    public String getTopflag() {
        return topflag;
    }

    public void setTopflag(String topflag) {
        this.topflag = topflag == null ? null : topflag.trim();
    }

    public String getReprintflag() {
        return reprintflag;
    }

    public void setReprintflag(String reprintflag) {
        this.reprintflag = reprintflag == null ? null : reprintflag.trim();
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag == null ? null : flag.trim();
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
}